/**
 * 
 */
package com.javacore;

import java.util.Scanner;

/**
 * @author Chung
 * @date - 12:26:34 PM Jul 24, 2013
 * @filename Exercise3.java
 */
public class Exercise3 {
	static Scanner n = new Scanner(System.in);

	public static void main(String[] args) {
		int sum = 0;
		int du; // Dung de tinh phan du
		int dayso;
		System.out.println("Please input the String number !");
		dayso = n.nextInt();
		while (dayso != 0) {
			du = dayso % 10;
			sum += du;
			dayso = dayso / 10;
		}
		System.out.println("Sum is : " + sum);
	}

}
